package loops;

public class EatFootDemo {
	public static void main(String[] args) {
		// 3顿饭，30天一个月吃多少,  3 * 30 = 90
		
		for (int day = 1; day <= 30; day++) {
			System.out.println("第" + day + "天");
			
			for (int eat = 1 ; eat  <= 3 ; eat++) {
				System.out.println("\t吃了第" + eat + "顿饭");
			}
		}
		
		// 背单词，一天背5个word单词，一周背day5天，背52周week   5*5*52
		int count = 0;
		for (int week = 1; week <= 52; week++) {
			// 52
			for (int day = 1; day <= 5; day++) {
				//...  52 * 5
				for (int word = 1; word <= 5; word++) {
					// 52 * 5 * 5
					count++;
				}
			} 
		}
		System.out.println("一共背了" + count + "个单词");
	}
}
